package com.linkage.cart.pojo;

public class Cartitem {
	/**
	 * create table cartitem
			(
			   userId               int(10) not null,
			   quantity             int(10) not null,
			   bookId               int(10),
			   primary key (userId)
			);
	 */
	private int userId;
	private int quantity;
	private int bookId;
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	@Override
	public String toString() {
		return "cartitem [userId=" + userId + ", quantity=" + quantity
				+ ", bookId=" + bookId + "]";
	}
	public Cartitem(int userId, int quantity, int bookId) {
		super();
		this.userId = userId;
		this.quantity = quantity;
		this.bookId = bookId;
	}
	public Cartitem() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
